const Axios = require('../utils/request');
const API = '/quote';

// COMEX铜库存：前端查询
const getComexFrontList = params => {
  return Axios.http({url: API + '/comexWarehouseReceipt/getFrontList', data: params})
}
// LME基本金属仓单：前端查询
const getLmeWarehouseFrontList = params => {
  return Axios.http({url: API + '/lmeWarehouseReceipt/getFrontList', data: params})
}
// LME基本金属库存报告：前端查询
const getLmeStockFrontList = params => {
  return Axios.http({url: API + '/lmeStockReport/getFrontList', data: params})
}
// 上期所仓单日报：前端查询
const getShfeWarehouseFrontList = params => {
  return Axios.http({url: API + '/shfeWarehouseReceipt/getFrontList', data: params})
}
// 上期所库存周报：前端查询
const getShfeStockFrontList = params => {
  return Axios.http({url: API + '/shfeStockReport/getFrontList', data: params})
}
// 前端菜单查询
const getFrontMenuList = params => {
  return Axios.http({url: API + '/menu/getFrontMenuList', data: params})
}
// 自定义表格：根据报价单id查询
const getGroupColumnListByQuoteGroupId = params => {
  return Axios.http({url: API + '/groupColumn/getGroupColumnListByQuoteGroupId', data: params})
}
// 报价单设置：前端报价单查询
const getFrontQuoteGroup = params => {
  return Axios.http({url: API + '/quoteGroup/getFrontQuoteGroup', data: params})
}
// 添加或取消自选报价
const followQuote = params => {
  return Axios.http({url: API + '/quote/followQuote', data: params, method: 'POST'})
}
// 前端自选页面自选报价查询
const getFollowQuoteList = params => {
  return Axios.http({url: API + '/quote/getFollowQuoteList', data: params})
}
// 前端根据区域查询报价单
const getRecommendQuoteGroup = params => {
  return Axios.http({url: API + '/quoteGroup/getRecommendQuoteGroup', data: params})
}


module.exports = {
  getComexFrontList,
  getLmeWarehouseFrontList,
  getLmeStockFrontList,
  getShfeWarehouseFrontList,
  getShfeStockFrontList,
  getFrontMenuList,
  getGroupColumnListByQuoteGroupId,
  getFrontQuoteGroup,
  followQuote,
  getFollowQuoteList,
  getRecommendQuoteGroup,
}